import { createStore } from 'vuex'
import { allbrand } from '@/network/user';
export default createStore({
  state: {
    user: {
      isLogin: window.localStorage.getItem('token') ? true : false,
    },
    tabledata: []
  },
  getters: {
  },
  mutations: {
    setIsLogin(state, payload) {
      state.user.isLogin = payload;
    },
    settabedata(state, data) {
  
      state.tabledata = data;
    }
  },
  actions: {
  },
  modules: {
  }
})
